<%@ page contentType="text/html; charset=UTF-8" language="java" import="java.util.*" errorPage="/error.jsp" %>
<%@ page import="com.beans.link.*" %>
<%@ page import="com.business.link.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%String title="增加收藏"; %>
<%
String linkNo=request.getParameter("no"); 
LinkListBus llb=new LinkListBus();
Link link=llb.getLinkByNo(linkNo);
%>

<body>
<%@include file="header.jsp"%>
<form id="addlinkform" name="addlinkform" method="post" action="addlink">
  <p>链接名：
    <label>
    <input name="linkname" type="text" id="linkname" value="<%=link.getLinkName()%>" />
    </label>
  </p>
  <p>描述：
    <label>
    <input name="linkdemo" type="text" id="linkdemo" value="<%=link.getLinkDemo()%>"/>
    </label>
  </p>
  <p>网址：
    <label>
    <input name="linkurl" type="text" id="linkurl" size="80" value="<%=link.getLinkUrl()%>"/>
    </label>
  </p>
  <p>是否显示在首页：
    <label>
    <input name="isshow" type="checkbox" id="isshow" value="1" <%if(link.getIsShow().equals("1")){%>checked="checked" <%}%>/>
    </label>
  </p>

    
		<input type="hidden" name="linkno" value="<%=linkNo%>"/>
		<input name="action" type="hidden"  id="action" value="update"/>
		<input name="username" type="hidden" id="username" value="<%=(String)session.getAttribute("login_user")%>" />
  <p>
   <label>
		<br />
 &nbsp; <input type="image" src="images/submit.gif" />
      </label>
</p>
</form>
<%@include file="footer.jsp"%>
</body>

</html>
